草庐IT

c++ - C3859 : Virtual memory range for PCH exceeded

全部标签

c++ - C3859 : Virtual memory range for PCH exceeded

我在编译(编辑:抱歉,我在这里没有说清楚:我实际上是指“重建”)我的混合模式项目时不时(不是每次)收到此错误消息。VisualStudio告诉我“使用‘-Zm114’或更高的命令行选项重新编译”。原则上没问题,我照VS说的做。但是目前,这有两个问题:为什么它不会在我进行重建时每次发生?如果我理解正确,编译器在编译我的项目时内存不足。因此,如果我进行重建,清除所有以前的工作,如果我不做任何更改,下次它不应该也用完内存吗?为了安全起见,我已经在这个项目的所有配置中为Zm(即Zm120)指定了120的值。为什么我会收到带有此较低值的错误消息?还是建议值114只是VS的胡乱猜测?

C++:在混合使用 C++/CLI 和 C++ 进行编译时获取 c3859 错误代码

按照HansPassant在C++:Gettingthe"errorC2065:'pst':undeclaredidentifier"whileusingpstsdk?中的建议完成后(有效),我的代码现在看起来像这样:private:System::VoidreadPstFileButton_Click(System::Object^sender,System::EventArgs^e){pstsdk::pstmyfile(marshal_as(fileNameTextBox->Text));}我现在收到以下错误:errorC3859:virtualmemoryrangeforPCHe

C++:在混合使用 C++/CLI 和 C++ 进行编译时获取 c3859 错误代码

按照HansPassant在C++:Gettingthe"errorC2065:'pst':undeclaredidentifier"whileusingpstsdk?中的建议完成后(有效),我的代码现在看起来像这样:private:System::VoidreadPstFileButton_Click(System::Object^sender,System::EventArgs^e){pstsdk::pstmyfile(marshal_as(fileNameTextBox->Text));}我现在收到以下错误:errorC3859:virtualmemoryrangeforPCHe

c++ - 是否有更简洁的方法来处理编译器错误 C1076 和 C3859?

今天我一直在向我们的precomp.h文件中添加一些库header。然后我尝试在调试中重新编译并得到这两个错误(从boostinclude产生):errorC3859:virtualmemoryrangeforPCHexceeded;pleaserecompilewithacommandlineoptionof'-Zm310'orgreaterfatalerrorC1076:compilerlimit:internalheaplimitreached;use/Zmtospecifyahigherlimit所以我通过增加内存堆大小来修复它们。没问题。我的问题更多是这个问题是否隐藏了另一个